#include <sstream>
#include <string>

#include <LengthFormate.h>
#include <Length.h>

using namespace std;

Length::Length(const BasicLength& rhs):BasicLength(rhs.value_m,rhs.unitType_m)
{
}
Length::Length(int value, const LengthUnit& unitType):BasicLength(value, unitType)
{
}

string Length::formate(const LengthFormate& formate) const
{
	return formate.formate(toAmountInBaseUnit());
}

